<!DOCTYPE html><html><head><title>文件管理器扩展右键菜单的两种方式</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'><style></style></head><body><div id='preview-contents' class='note-content'>
                        
                    



<h2 id="文件管理器扩展右键菜单的两种方式">   文件管理器扩展右键菜单的两种方式</h2>

<h4 id="１继承menuinterface遵守qt的插件规范实现你的菜单插件接口">１．继承MenuInterface，遵守Qt的插件规范实现你的菜单插件接口</h4>

<ul><li><h6 id="插件头文件">插件头文件</h6>

<p>如果你安装了<code>libdde-file-manager-dev</code>你可以在如下路径找到<strong>menuinterface.h</strong></p>

<ul>
<li><p>在/etc/apt/source.list中添加如下源：</p>

<pre class="prettyprint hljs-dark"><code class="hljs groovy">deb-src <span class="hljs-string">http:</span><span class="hljs-comment">//pools.corp.deepin.com/deepin unstable main non-free</span><br></code></pre></li>
<li><p>升级安装libdde-file-manager-dev</p>

<pre class="prettyprint hljs-dark"><code class="hljs q">sudo apt-<span class="hljs-built_in">get</span> <span class="hljs-keyword">update</span><br>sudo apt-<span class="hljs-built_in">get</span> install libdde-file-manager-<span class="hljs-built_in">dev</span><br></code></pre></li>
<li>就可以找到<code>/usr/include/dde-file-manager/menuinterface.h</code></li></ul>

<p>同样可以在 git clone <a href="https://github.com/linuxdeepin/dde-file-manager" target="_blank">https://github.com/linuxdeepin/dde-file-manager</a>　下载源码到<code>dde-file-manager</code>, 切到<code>develop2.0分支</code> 可以找到<code>dde-file-manager/dde-file-manager-plugins/plugininterfaces/menu/menuinterface.h</code></p></li>
<li><h6 id="接口说明">接口说明：</h6>

<ul>
<li>virtual QList additionalIcons(const QString &amp;file) 实现这个接口可以扩展指定文件的角标 <br>
<ul>
<li><code>const QString &amp;file</code> 表示需要显示脚本的文件完整路径</li>
<li>QList 返回一组QIcon列表</li></ul></li>
<li><p>virtual QList&lt;QAction*&gt; additionalMenu(const QStringList &amp;files, const QString&amp; currentDir)　实现这个接口可以扩展选中文件的右键菜单</p>

<ul>
<li><code>const QStringList &amp;files</code> 表示选中的文件的完整路径列表</li>
<li><code>const QString&amp; currentDir</code> 表示选中的文件所在的目录</li>
<li><code>QList&lt;QAction*&gt;</code> 返回一组QAction指针列表</li></ul></li>
<li><p>virtual QList&lt;QAction*&gt; additionalEmptyMenu(const QString &amp;currentDir)　实现这个接口可以扩展空白处的右键菜单</p>

<ul>
<li><code>const QString&amp; currentDir</code>　表示空白处所在的文件目录</li>
<li><code>QList&lt;QAction*&gt;</code> 返回一组QAction指针列表</li></ul></li></ul></li>
<li><h5 id="插件默认安装目录">插件默认安装目录</h5>

<ul>
<li>x86架 <br>
<ul>
<li><code>/usr/lib/x86_64-linux-gnu/dde-file-manager/plugins/menu/</code> 64位</li>
<li><code>/usr/lib/x86_32-linux-gnu/dde-file-manager/plugins/menu/</code>32位   </li></ul></li>
<li>龙芯架构 <br>
<ul>
<li><code>/usr/lib/mipsel-linux-gnu//dde-file-manager/plugins/menu/</code> </li></ul></li>
<li>神威架构 <br>
<ul>
<li><code>/usr/lib/sw_64-linux-gnu/dde-file-manager/plugins/menu/</code></li></ul></li></ul></li>
<li><h6 id="源码">源码：</h6>

<pre class="prettyprint hljs-dark"><code class="hljs gherkin"><span class="hljs-comment">#ifndef MENUINTERFACE</span><br><span class="hljs-comment">#define MENUINTERFACE</span><br><br><span class="hljs-comment">#include &lt;QList&gt;</span><br><span class="hljs-comment">#include &lt;QIcon&gt;</span><br><span class="hljs-comment">#include &lt;QAction&gt;</span><br><span class="hljs-comment">#include &lt;QWidget&gt;</span><br><br><br>/<span class="hljs-keyword">*</span><br> <span class="hljs-keyword">*</span> The menu interface of dde-file-manager<br> <span class="hljs-keyword">*</span> 文件管理器的右键菜单插件接口<br><span class="hljs-keyword">*</span>/<br>class MenuInterface<br>{<br>public:<br>    virtual ~MenuInterface() {}<br><br>    /<span class="hljs-keyword">*</span>!<br>     <span class="hljs-keyword">*</span> \brief additionalIcons<br>     <span class="hljs-keyword">*</span> \param file: the file path<br>     <span class="hljs-keyword">*</span> \return QList<span class="hljs-variable">&lt;QIcon&gt;</span>: corner mark icon list of the file which you want to by drawed<br>     <span class="hljs-keyword">*</span>/<br>    /<span class="hljs-keyword">*</span>!<br>     <span class="hljs-keyword">*</span> \brief additionalIcons　角标接口<br>     <span class="hljs-keyword">*</span> \param file: 文件路径<br>     <span class="hljs-keyword">*</span> \return QList<span class="hljs-variable">&lt;QIcon&gt;</span>:　返回一组QIcon列表，这些icon就是角标<br>     <span class="hljs-keyword">*</span>/<br>    virtual QList<span class="hljs-variable">&lt;QIcon&gt;</span> additionalIcons(const QString &amp;file)<br>    {<br>        Q_UNUSED(file)<br>        QList<span class="hljs-variable">&lt;QIcon&gt;</span> icons;<br>        return icons;<br>    }<br><br>    /<span class="hljs-keyword">*</span>!<br>     <span class="hljs-keyword">*</span> \brief additionalMenu<br>     <span class="hljs-keyword">*</span> \param files: selected files list<br>     <span class="hljs-keyword">*</span> \param currentDir : the current dir of menu which will be showed<br>     <span class="hljs-keyword">*</span> \return  QList<span class="hljs-variable">&lt;QAction*&gt;</span>: QAction pointer list<br>     <span class="hljs-keyword">*</span>/<br>    /<span class="hljs-keyword">*</span>!<br>     <span class="hljs-keyword">*</span> \brief additionalMenu　选中文件菜单接口<br>     <span class="hljs-keyword">*</span> \param files: 选中的文件路径列表<br>     <span class="hljs-keyword">*</span> \param currentDir：右键所在的文件目录<br>     <span class="hljs-keyword">*</span> \return QList<span class="hljs-variable">&lt;QAction*&gt;</span>：返回一组QAction指针列表，每个action对应菜单的一个菜单项<br>     <span class="hljs-keyword">*</span>/<br>    virtual QList<span class="hljs-variable">&lt;QAction*&gt;</span> additionalMenu(const QStringList &amp;files, const QString&amp; currentDir){<br>        Q_UNUSED(files)<br>        Q_UNUSED(currentDir)<br>        QList<span class="hljs-variable">&lt;QAction*&gt;</span> actions;<br>        return actions;<br>    }<br><br>    /<span class="hljs-keyword">*</span>!<br>     <span class="hljs-keyword">*</span> \brief additionalEmptyMenu<br>     <span class="hljs-keyword">*</span> \param currentDir: the current dir of empty area menu which will be showed<br>     <span class="hljs-keyword">*</span> \return QList<span class="hljs-variable">&lt;QAction*&gt;</span>: QAction pointer list<br>     <span class="hljs-keyword">*</span>/<br>    /<span class="hljs-keyword">*</span>!<br>     <span class="hljs-keyword">*</span> \brief additionalEmptyMenu　空白菜单接口<br>     <span class="hljs-keyword">*</span> \param currentDir: 空白菜单所在的文件目录<br>     <span class="hljs-keyword">*</span> \return QList<span class="hljs-variable">&lt;QAction*&gt;</span>：返回一组QAction指针列表，每个action对应菜单的一个菜单项<br>     <span class="hljs-keyword">*</span>/<br>    virtual QList<span class="hljs-variable">&lt;QAction*&gt;</span> additionalEmptyMenu(const QString &amp;currentDir){<br>        Q_UNUSED(currentDir)<br>        QList<span class="hljs-variable">&lt;QAction*&gt;</span> actions;<br>        return actions;<br>    }<br>};<br><br><br>/<span class="hljs-keyword">*</span><br> <span class="hljs-keyword">*</span> The property dialog expand info interface of dde-file-manager<br> <span class="hljs-keyword">*</span> 文件管理器的属性对话框插件接口<br><span class="hljs-keyword">*</span>/<br>class PropertyDialogExpandInfoInterface<br>{<br>public:<br><br>    virtual ~PropertyDialogExpandInfoInterface() {}<br><br>    /<span class="hljs-keyword">*</span>!<br>     <span class="hljs-keyword">*</span> \brief expandWidget<br>     <span class="hljs-keyword">*</span> \param file: the file path<br>     <span class="hljs-keyword">*</span> \return QWidget<span class="hljs-keyword">*</span>: the widget which will be showed in property dialog<br>     <span class="hljs-keyword">*</span>/<br>    /<span class="hljs-keyword">*</span>!<br>     <span class="hljs-keyword">*</span> \brief expandWidget 属性子控件接口<br>     <span class="hljs-keyword">*</span> \param file：需要扩展属性显示的文件路径<br>     <span class="hljs-keyword">*</span> \return QWidget<span class="hljs-keyword">*</span>：返回对应的属性控件指针<br>     <span class="hljs-keyword">*</span>/<br>    virtual QWidget<span class="hljs-keyword">*</span> expandWidget(const QString&amp; file) {<br>        Q_UNUSED(file)<br>        return new QWidget();<br>    }<br><br>    /<span class="hljs-keyword">*</span>!<br>     <span class="hljs-keyword">*</span> \brief expandWidgetTitle<br>     <span class="hljs-keyword">*</span> \return QString: the title of the QWidget which will be showed in property dialog<br>     <span class="hljs-keyword">*</span>/<br>    /<span class="hljs-keyword">*</span>!<br>     <span class="hljs-keyword">*</span> \brief expandWidgetTitle　属性子控件对应的标题即可<br>     <span class="hljs-keyword">*</span> \return QString:　返回对应扩展属性控件的标题<br>     <span class="hljs-keyword">*</span>/<br>    virtual QString expandWidgetTitle(){<br>        return <span class="hljs-string">""</span>;<br>    }<br><br>};<br><br><br><span class="hljs-comment">#define MenuInterface_iid "com.deepin.dde-file-manager.MenuInterface"</span><br>Q_DECLARE_INTERFACE(MenuInterface, MenuInterface_iid)<br><br><span class="hljs-comment">#define PropertyDialogExpandInfoInterface_iid "com.deepin.dde-file-manager.PropertyDialogExpandInfoInterface"</span><br>Q_DECLARE_INTERFACE(PropertyDialogExpandInfoInterface, PropertyDialogExpandInfoInterface_iid)<br><br><span class="hljs-comment">#endif // MENUINTERFACE</span><br></code></pre></li>
</ul>

<h4 id="2-支持json配置文件格式扩展右键菜单">2.  支持json配置文件格式扩展右键菜单</h4>

<ul><li><h6 id="支持扩展的右键菜单各个字段说明">支持扩展的右键菜单各个字段说明</h6>

<ul>
<li><p>通用字段</p>

<ul>
<li><p><code>MenuType</code> 菜单类型（必须指定）</p>

<ul>
<li><code>SingleFile</code> 　选中单个文件</li>
<li><code>MultiFiles</code>　选中多个文件</li>
<li><code>SingleDir</code>　选中单个目录</li>
<li><code>MultiDirs</code>　选中多个目录</li>
<li><code>MultiFileDirs</code>　选中多个文件和目录</li>
<li><code>EmptyArea</code>　空白区域</li></ul></li>
<li><p><code>Icon</code> 菜单项的指示图标(可选)</p>

<ul>
<li><code>Icon</code>: <code>/home/djf/Music/usb_normal_16px.svg</code></li></ul></li>
<li><code>Text[local]</code> 根据不同的语言环境给出不同的菜单文本（必须指定） <br>
<ul>
<li><code>Text[zh_CN]</code>: <code>sub文件SingleFile</code></li>
<li><code>Text[en]</code>: <code>sub文件SingleFile</code></li>
<li><strong>……</strong></li></ul></li>
<li><code>Exec</code>  点击菜单项执行的命令（必须指定） <br>
　+ <code>Exec</code>: <code>dde-file-manager</code> 启动文件管理器 <br>
　</li>
<li><code>SubMenu</code> :子菜单列表，子菜单列表不需要再次指定<code>MenuType</code>字段，其他字段参数一样，支持SubMenu中嵌套无限层级级菜单。</li></ul></li>
<li><p>如果MenuType为<code>SingleFile</code> 或者<code>MultiFiles</code>，可以增加下面两个字段来细化菜单控制</p>

<ul>
<li>MimeType 文件的MimeType类型，如果指定了这个参数，表示只拓展这个类型的文件右键菜单；以<code>;</code>隔开  　 <br>
<ul>
<li><code>MimeType</code>:<code>text/plain;image/jpeg</code> </li></ul></li>
<li><p>Suffix　文件的后缀，如果指定了这个参数，表示只拓展后缀名为指定后缀的文件的右键菜单；以<code>;</code>隔开   </p>

<ul>
<li><code>Suffix</code>: <code>md;txt</code></li></ul></li>
<li><p>如果<code>MimeType</code>和<code>Suffix</code>两个参数同时指定，表示文件类型为<code>MimeType</code>且后缀名为<code>Suffix</code>的文件才支持扩展右键菜单</p></li></ul></li></ul></li>
<li><h5 id="默认配置文件路径">默认配置文件路径</h5>

<p><code>/home/djf/.config/deepin/dde-file-manager/menuextensions</code></p></li>
<li><h6 id="示例">示例：</h6>

<pre class="prettyprint hljs-dark"><code class="hljs json">[<br>    {<br>        "<span class="hljs-attribute">MenuType</span>": <span class="hljs-value"><span class="hljs-string">"SingleFile"</span></span>,<br>        "<span class="hljs-attribute">Icon</span>": <span class="hljs-value"><span class="hljs-string">"/home/djf/Music/usb_normal_16px.svg"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_CN]</span>": <span class="hljs-value"><span class="hljs-string">"文件SingleFile"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_HK]</span>": <span class="hljs-value"><span class="hljs-string">"文件SingleFile"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_TW]</span>": <span class="hljs-value"><span class="hljs-string">"文件SingleFile"</span></span>,<br>        "<span class="hljs-attribute">MimeType</span>": <span class="hljs-value"><span class="hljs-string">""</span></span>,<br>        "<span class="hljs-attribute">Suffix</span>": <span class="hljs-value"><span class="hljs-string">"md;"</span></span>,<br>        "<span class="hljs-attribute">Exec</span>": <span class="hljs-value"><span class="hljs-string">""</span></span>,<br>        "<span class="hljs-attribute">SubMenu</span>": <span class="hljs-value">[<br>             {<br>                "<span class="hljs-attribute">Icon</span>": <span class="hljs-value"><span class="hljs-string">"111111111"</span></span>,<br>                "<span class="hljs-attribute">Text[zh_CN]</span>": <span class="hljs-value"><span class="hljs-string">"sub文件SingleFile"</span></span>,<br>                "<span class="hljs-attribute">Text[zh_HK]</span>": <span class="hljs-value"><span class="hljs-string">"sub文件SingleFile"</span></span>,<br>                "<span class="hljs-attribute">Text[zh_TW]</span>": <span class="hljs-value"><span class="hljs-string">"sub文件SingleFile"</span></span>,<br>                "<span class="hljs-attribute">Exec</span>": <span class="hljs-value"><span class="hljs-string">"dde-file-manager"</span></span>,<br>                "<span class="hljs-attribute">SubMenu</span>": <span class="hljs-value">[<br>                    {<br>                        "<span class="hljs-attribute">Icon</span>": <span class="hljs-value"><span class="hljs-string">"dssd"</span></span>,<br>                        "<span class="hljs-attribute">Text[zh_CN]</span>": <span class="hljs-value"><span class="hljs-string">"sub文件SingleFile"</span></span>,<br>                        "<span class="hljs-attribute">Text[zh_HK]</span>": <span class="hljs-value"><span class="hljs-string">"sub文件SingleFile"</span></span>,<br>                        "<span class="hljs-attribute">Text[zh_TW]</span>": <span class="hljs-value"><span class="hljs-string">"sub文件SingleFile"</span></span>,<br>                        "<span class="hljs-attribute">Exec</span>": <span class="hljs-value"><span class="hljs-string">"dde-file-manager"</span><br>                    </span>},<br>                    {<br>                        "<span class="hljs-attribute">Icon</span>": <span class="hljs-value"><span class="hljs-string">"dssd"</span></span>,<br>                        "<span class="hljs-attribute">Text[zh_CN]</span>": <span class="hljs-value"><span class="hljs-string">"sub文件SingleFile"</span></span>,<br>                        "<span class="hljs-attribute">Text[zh_HK]</span>": <span class="hljs-value"><span class="hljs-string">"sub文件SingleFile"</span></span>,<br>                        "<span class="hljs-attribute">Text[zh_TW]</span>": <span class="hljs-value"><span class="hljs-string">"sub文件SingleFile"</span></span>,<br>                        "<span class="hljs-attribute">Exec</span>": <span class="hljs-value"><span class="hljs-string">"dde-file-manager"</span><br>                    </span>}<br>                ]<br>             </span>},<br>             {<br>                "<span class="hljs-attribute">Icon</span>": <span class="hljs-value"><span class="hljs-string">"2222222"</span></span>,<br>                "<span class="hljs-attribute">Text[zh_CN]</span>": <span class="hljs-value"><span class="hljs-string">"sub文件SingleFile"</span></span>,<br>                "<span class="hljs-attribute">Text[zh_HK]</span>": <span class="hljs-value"><span class="hljs-string">"sub文件SingleFile"</span></span>,<br>                "<span class="hljs-attribute">Text[zh_TW]</span>": <span class="hljs-value"><span class="hljs-string">"sub文件SingleFile"</span></span>,<br>                "<span class="hljs-attribute">Exec</span>": <span class="hljs-value"><span class="hljs-string">"dde-file-manager"</span><br>             </span>}<br>        ]<br>    </span>},<br>    {<br>        "<span class="hljs-attribute">MenuType</span>": <span class="hljs-value"><span class="hljs-string">"SingleFile"</span></span>,<br>        "<span class="hljs-attribute">Icon</span>": <span class="hljs-value"><span class="hljs-string">"Files"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_CN]</span>": <span class="hljs-value"><span class="hljs-string">"文件SingleFile2"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_HK]</span>": <span class="hljs-value"><span class="hljs-string">"文件SingleFile2"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_TW]</span>": <span class="hljs-value"><span class="hljs-string">"文件SingleFile2"</span></span>,<br>        "<span class="hljs-attribute">MimeType</span>": <span class="hljs-value"><span class="hljs-string">""</span></span>,<br>        "<span class="hljs-attribute">Exec</span>": <span class="hljs-value"><span class="hljs-string">"dde-file-manager"</span><br>    </span>},<br>    {<br>        "<span class="hljs-attribute">MenuType</span>": <span class="hljs-value"><span class="hljs-string">"MultiFiles"</span></span>,<br>        "<span class="hljs-attribute">Icon</span>": <span class="hljs-value"><span class="hljs-string">"Files"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_CN]</span>": <span class="hljs-value"><span class="hljs-string">"文件MultiFiles"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_HK]</span>": <span class="hljs-value"><span class="hljs-string">"文件MultiFiles"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_TW]</span>": <span class="hljs-value"><span class="hljs-string">"文件MultiFiles"</span></span>,<br>        "<span class="hljs-attribute">MimeType</span>": <span class="hljs-value"><span class="hljs-string">"text/plain;image/jpeg"</span></span>,<br>        "<span class="hljs-attribute">Exec</span>": <span class="hljs-value"><span class="hljs-string">"dde-file-manager"</span><br>    </span>},<br>    {<br>        "<span class="hljs-attribute">MenuType</span>": <span class="hljs-value"><span class="hljs-string">"MultiFiles"</span></span>,<br>        "<span class="hljs-attribute">Icon</span>": <span class="hljs-value"><span class="hljs-string">"Files"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_CN]</span>": <span class="hljs-value"><span class="hljs-string">"文件MultiFiles2"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_HK]</span>": <span class="hljs-value"><span class="hljs-string">"文件MultiFiles2"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_TW]</span>": <span class="hljs-value"><span class="hljs-string">"文件MultiFiles2"</span></span>,<br>        "<span class="hljs-attribute">MimeType</span>": <span class="hljs-value"><span class="hljs-string">""</span></span>,<br>        "<span class="hljs-attribute">Exec</span>": <span class="hljs-value"><span class="hljs-string">"dde-file-manager"</span><br>    </span>},<br>    {<br>        "<span class="hljs-attribute">MenuType</span>": <span class="hljs-value"><span class="hljs-string">"SingleDir"</span></span>,<br>        "<span class="hljs-attribute">Icon</span>": <span class="hljs-value"><span class="hljs-string">"Files"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_CN]</span>": <span class="hljs-value"><span class="hljs-string">"文件SingleDir"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_HK]</span>": <span class="hljs-value"><span class="hljs-string">"文件SingleDir"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_TW]</span>": <span class="hljs-value"><span class="hljs-string">"文件SingleDir"</span></span>,<br>        "<span class="hljs-attribute">Exec</span>": <span class="hljs-value"><span class="hljs-string">"dde-file-manager"</span><br>    </span>},<br>    {<br>        "<span class="hljs-attribute">MenuType</span>": <span class="hljs-value"><span class="hljs-string">"MultiDirs"</span></span>,<br>        "<span class="hljs-attribute">Icon</span>": <span class="hljs-value"><span class="hljs-string">"Files"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_CN]</span>": <span class="hljs-value"><span class="hljs-string">"文件MultiDir"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_HK]</span>": <span class="hljs-value"><span class="hljs-string">"文件MultiDir"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_TW]</span>": <span class="hljs-value"><span class="hljs-string">"文件MultiDir"</span></span>,<br>        "<span class="hljs-attribute">Exec</span>": <span class="hljs-value"><span class="hljs-string">"dde-file-manager"</span><br>    </span>},<br>    {<br>        "<span class="hljs-attribute">MenuType</span>": <span class="hljs-value"><span class="hljs-string">"MultiFileDirs"</span></span>,<br>        "<span class="hljs-attribute">Icon</span>": <span class="hljs-value"><span class="hljs-string">"Files"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_CN]</span>": <span class="hljs-value"><span class="hljs-string">"文件MultiFileDirs"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_HK]</span>": <span class="hljs-value"><span class="hljs-string">"文件MultiFileDirs"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_TW]</span>": <span class="hljs-value"><span class="hljs-string">"文件MultiFileDirs"</span></span>,<br>        "<span class="hljs-attribute">Exec</span>": <span class="hljs-value"><span class="hljs-string">"dde-file-manager"</span><br>    </span>},<br>    {<br>        "<span class="hljs-attribute">MenuType</span>": <span class="hljs-value"><span class="hljs-string">"EmptyArea"</span></span>,<br>        "<span class="hljs-attribute">Icon</span>": <span class="hljs-value"><span class="hljs-string">"Files"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_CN]</span>": <span class="hljs-value"><span class="hljs-string">"EmptyArea"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_HK]</span>": <span class="hljs-value"><span class="hljs-string">"EmptyArea"</span></span>,<br>        "<span class="hljs-attribute">Text[zh_TW]</span>": <span class="hljs-value"><span class="hljs-string">"EmptyArea"</span></span>,<br>        "<span class="hljs-attribute">Exec</span>": <span class="hljs-value"><span class="hljs-string">"dde-file-manager"</span><br>    </span>}<br>]<br></code></pre></li>
</ul></div></body></html>